#ifndef __MAP_EDITOR_H__
#define __MAP_EDITOR_H__

#include <QMainWindow>
#include <QAction>
#include <QMenu>
#include <QMenuBar>

#include "MapCreator.h"

class MapEditor : public QMainWindow
{
	Q_OBJECT;
public:
	MapEditor( QWidget* parent = NULL);
	~MapEditor() { delete m_creator; } 

private slots:
	void newMap();
	void loadMap();
	void saveMap();
	void handleQuit();

signals:
	void quit();


private:
	QAction* newAct;
	QAction* loadAct;
	QAction* saveAct;
	QAction* quitAct;

	QMenu* fileMenu;
	QString m_filename;

	MapCreator* m_creator;
};

#endif
